package com.demo.shiro.service;

import com.demo.shiro.model.UserOnline;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Jmy
 * @date 2019/8/6 21:58
 * @email jiaomingyu5778@gmail.com
 */
public interface SessionService {

    /**
     * 获取在线用户
     * @return
     */
    List<UserOnline> list();

    /**
     * 强制登出用户
     * @param sessionId
     * @return
     */
    boolean forceLogout(String sessionId);
}
